package com.crungoo;

import com.crungoo.entities.User;
import java.beans.PropertyEditor;
import java.beans.PropertyEditorSupport;

/**
 * @author fujc-dev@qq.com
 * @description TODO
 * @date 2023/6/27 17:33
 */

public class StringToUserPropertyEditor extends PropertyEditorSupport implements PropertyEditor {

	@Override
	public void setAsText(String text) throws IllegalArgumentException {
		User user = new User();
		user.setName(text);
		this.setValue(user);
	}
}
